import unittest

from gui.fivechess import Direction
from gui.fivechess import unify_list


class TestColor(unittest.TestCase):

    def test_value(self):
        up = Direction.UP
        self.assertEqual(up.value.x, 0)
        self.assertEqual(up.value.y, -1)

    def test_unified_list(self):
        my_list = [1, 1, 2, 3, 4, 4, 4]
        print(my_list)
        my_list = unify_list(my_list)
        print(my_list)
        my_list = [(1, 1), (1, 2), (2, 3), (1, 2)]
        print(my_list)
        my_list = unify_list(my_list)
        print(my_list)
